package com.xinqi.modules.chat.chat.official.message;

import io.rong.messages.BaseMessage;
import io.rong.messages.CustomTxtMessage;
import io.rong.util.GsonUtil;

public class CustomTypeMessage extends BaseMessage {

    private String content = "";
    public String TYPE = "RC:TxtMsg";

    public CustomTypeMessage(String content, String type) {
        this.content = content;
        this.TYPE = type;
    }

    @Override
    public String getType() {
        return this.TYPE;
    }

    public String getContent() {
        return this.content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return GsonUtil.toJson(this, CustomTypeMessage.class);
    }

}
